We want to unrealize the renderer only after all widgets have been
unrealized. Otherwise, the widgets cannot release rendering resources
like textures.
GList *link;
gint i;
- if (priv->renderer != NULL)
- gsk_renderer_unrealize (priv->renderer);
-
/* On unrealize, we reset the size of the window such
* that we will re-apply the default sizing stuff
* next time we show the window.
GTK_WIDGET_CLASS (gtk_window_parent_class)->unrealize (widget);
priv->hardcoded_window = NULL;
+
+ if (priv->renderer != NULL)
+ gsk_renderer_unrealize (priv->renderer);
}
static void